package com.lkq.gms.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @ClassName grade
 * @Description TODO
 * @Author dell
 * @Date 2020/6/28-23:03
 * @Version 1.0
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class grade implements Serializable {
    //主键id
    private Integer id;
    //数学成绩
    private Integer math_Scores;
    //语文成绩
    private Integer chinese_Scores;
    //英语成绩
    private Integer english_Scores;
    //物理成绩
    private Integer physics_Scores;
    //化学成绩
    private Integer chemistry_Scores;
    //生物成绩
    private Integer biology_Scores;
    //历史成绩
    private Integer history_Scores;
    //地理成绩
    private Integer geography_Scores;
    //政治成绩
    private Integer politics_Scores;

    //总成绩
    private Integer total_Scores;

    public Integer getTotal_Scores() {
        total_Scores=math_Scores+chinese_Scores+english_Scores+
                physics_Scores+chemistry_Scores+biology_Scores+
                history_Scores+geography_Scores+politics_Scores;
        return total_Scores;
    }
}
